<?php
/**
 * Created by PhpStorm.
 * User: bc006
 * Date: 2016/7/1
 * Time: 16:28
 */

Route::get('article/list', ['as' => 'article.list', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articlelist']);

Route::get('article/add', function(){
    return View('article::add');
});
Route::get('article/del/{id}', ['as' => 'article.del.get', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articledelget']);

Route::get('article/show/{id}', ['as' => 'article.show.get', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articleshowget']);

Route::post('article/add', ['as' => 'article.add.post', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articleaddpost']);

Route::get('article/edit/{id}', ['as' => 'article.edit.get', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articleeditget']);
Route::post('article/edit/{id}', ['as' => 'article.edit.post', 'uses' => 'App\Plugins\Article\Controller\ArticleController@articleeditpost']);